package jp.eisbahn.mgapi.util;

public class StringUtils {

    public static String join(String[] array, String delimiter) {
        if (array == null) {
            return null;
        }
        StringBuilder sb = new StringBuilder();
        boolean first = true;
        for (int i = 0; i < array.length; i++) {
            if (first) {
                first = false;
            } else {
                sb.append(delimiter);
            }
            sb.append(array[i]);
        }
        return sb.toString();
    }
    
}
